if (seg->next == NULL)
g_error ("pixbuf segment is the last segment in a line");
- if (seg->byte_count != 3)
+ if (seg->byte_count != GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN)
g_error ("pixbuf segment has byte count of %d", seg->byte_count);
if (seg->char_count != 1)
if (seg->next == NULL)
g_error ("child segment is the last segment in a line");
- if (seg->byte_count != 3)
+ if (seg->byte_count != GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN)
g_error ("child segment has byte count of %d", seg->byte_count);
if (seg->char_count != 1)
seg->next = NULL;
- seg->byte_count = 3; /* We convert to the 0xFFFC "unknown character",
- * a 3-byte sequence in UTF-8
- */
+ /* We convert to the 0xFFFC "unknown character",
+ * a 3-byte sequence in UTF-8.
+ */
+ seg->byte_count = GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN;
seg->char_count = 1;
seg->body.child.obj = anchor;